home *** CD-ROM | disk | FTP | other *** search
- Path: ccnet.com!usenet
- From: fladung@emf.net (Ed Fladung)
- Newsgroups: comp.lang.c
- Subject: Re: Multiple Labels in a #ifdef
- Date: Fri, 02 Feb 1996 22:56:37 GMT
- Organization: CCnet Communications (510-988-7140 guest)
- Message-ID: <4eu4mt$9n9@ccnet2.ccnet.com>
- References: <4erh8d$86u@ccnet2.ccnet.com>
- Reply-To: fladung@emf.net
- NNTP-Posting-Host: 199.217.9.50
- X-Newsreader: Forte Free Agent 1.0.82
-
- fladung@emf.net (Fast Eddie) wrote:
-
- >Is is possible to use multiple labels in a #ifdef?
-
- >This is what I would like to do:
-
- >#ifdef (DEBUG1 | DEBUG2 | DEBUG3)
-
- >/* define something if DEBUG1 or DEBUG2 or DEBUG3 is defined */
-
- >#endif
-
- Hate to answer my own submission but...
-
- I'm not sure this works on all compilers but it works on VMS c.
-
- #if defined DEBUG1 || defined DEBUG2 || defined DEBUG3
-
- /* Do something */
-
- #endif
-
-
-
-